<?php
		session_start();
		include_once('../config.php');
		include_once("../database/DataBase.php");
		include_once("function.php");

		$company_name = $_POST["company_name"];
		$cid = $_POST["cid"];
		
		$database = New DataBase();
		$database->open_connection();
		$result = $database->getCompanyByName($cid, $company_name);
		
		if(mysql_num_rows($result) == 0){
			echo "true";
		}
		else{
			echo "False";
		}
		
		$database->close_connection();
?>